<?php $this->load->view('common/ck-bosspagehead'); ?>
<?php $this->load->view('common/ck-bossheader'); ?>
<article id="content">
    <div class="pgwrapper">
    <div class="w960 bg1 p15 bx_shw">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="20%" style="border-right: 2px solid #e5e5e5;" valign="top">
            <?php $this->load->view('enterprises/leftnavCMS'); ?>
            </td>
            <td width="80%" valign="top"><form enctype="multipart/form-data"
                    action="/addBank" onsubmit="return validateForm()" method="POST">
                    <table width="100%" border="0" cellpadding="5" cellspacing="0"
                        style="padding-left: 20px;">
                        <tr>
                            <td class="txt-blck" width="30%">Bank Name:</td>
                            <td width="70%"><input type="text" onblur="makeURLBank(this)" value="" name="bank_name"
                                id="bank_name" class="inputCMS" style="width: 300px;" />
                            </td>
                        </tr>
                        <tr>
                            <td class="txt-blck" width="30%">Bank Url:</td>
                            <td width="70%"><input type="text" value="" name="bank_url"
                                id="bank_url" class="inputCMS" style="width: 300px;" />
                            </td>
                        </tr>
                        <tr>
                        <td class="txt-blck">Bank Image:</td>
                        <td><input type="file" id="bank_image" name="bank_image" /></td>
                    </tr>
                        <tr>
                            <td class="txt-blck">Bank Status:</td>
                            <td><select id="bank_status" name="bank_status">
                                    <option value="Yes">Yes</option>
                                    <option value="No">No</option>
                            </select></td>
                        </tr>
                        <tr>
                            <td class="txt-blck">Bank Country:</td>
                            <td><select id="bank_country" name="bank_country">
                                    <option value="India">India</option>
                                    <option value="Other">Other</option>
                            </select></td>
                        </tr>
                        <tr>
                            <td valign="top" class="txt-blck">Bank Web URL:</td>
                            <td>
                                <div><input type="text" class="inputCMS" name="bank_weburl" id="bank_weburl" style="width:300px" value="" /></div>                       
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><input type="submit" name="bank_submit" value="Submit" /></td>
                        </tr>
                    </table>
                </form></td>
        </tr>
    </table>
</div>
</div>
</article>
<div class="clr-both spacer-10">&nbsp;</div>
<?php $this->load->view('common/ck-bossfooter'); ?>

<script>

function validateForm(){
    var x = document.getElementById('bank_name').value;
    if(x==""){
    alert("Bank Name must be filled out.");
    return false;
    }
}
</script> 